package com.swt.testdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/12 9:05
 **/
@Data
@ApiModel(value = "创建消息表单")
public class CreateMsgForm {

    @ApiModelProperty(value = "消息内容",example = "化学品图谱")
    @NotBlank(message = "消息内容不可以为空")
    private String msgContent;


    @ApiModelProperty(value = "展示方式（气泡 bubble, 窗口 window）",example = "bubble")
    @NotBlank(message = "展示方式不可为空")
    private String msgShow;


    @ApiModelProperty(value = "消息等级（1，2，3）", example = "1")
    @NotBlank(message = "消息等级不可为空")
    private String msgLevel;

    @ApiModelProperty(value = "发送类型（0 全局发送；1 指定用户发送）", example = "1")
    @NotBlank(message = "发送类型不可为空")
    private String sendType;

    @ApiModelProperty(value = "用户列表")
    private List<Integer>  userList;

}
